import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'

import book from '@/components/front/news/book'
import addUser from '@/components/front/user/addUser'
import addNews from '@/components/front/news/addNews'
import backaddNews from '@/components/back/news/addNews'
import backNews from '@/components/back/news/'
import getTest from '@/components/back/news/getTest'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/book',
      name: 'book',
      component: book
    },
    {
      path: '/addUser',
      name: 'addUser',
      component: addUser
    },
    {
      path: '/addNews',
      name: 'addNews',
      component: addNews
    },
    {
      path: '/back/addNews',
      name: 'backaddNews',
      component: backaddNews
    },
    {
      path: '/back/news',
      name: 'backNews',
      component: backNews
    },
    {
      path: '/back/getTest',
      name: 'getTest',
      component: getTest
    },
  ]
})
